[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Function            menu_litebar - litebar style menu

  Syntax              int menu_litebar(int left, int top, int right,
                                     int bottom, char *frame, char
                                     *title, int titlejustify, int count,
                                     char *command[], int cmdleft[], int
                                     cmdright[], int cmdup[], int
                                     cmddown[], int cmdkey[], char
                                     cmdflag[], int cmdx[], int cmdy[],
                                     char *message[], int msgx, int msgy,
                                     int argq, int quitkey[], int
                                     colframe, int coltitle, int colnorm,
                                     int colcmdkey, int colhilite, int
                                     coldisable, int coldishilite, int
                                     colnotopt, int colmessage, int
                                     defaultcommand, unsigned flags);

  Prototype in        menuhk.h

  Remarks             an all-in-one function, menu_litebar() is
                      equivalent to calling litebar_alloc(),
                      litebar_get() and litebar_free(), with the flags
                      Quit, Erase menu, case Independent and Wraparound.
                      See litebar_alloc() and litebar_get for more
                      details about parameters and menu keys.

  Return value        returns zero if ESC was hit, otherwise returns the
                      number of the command selected. This is not the
                      array index of the command. If command[] has 3
                      static text items and a command, and the command is
                      selected, a 1 will be returned, even though the
                      command is the fourth command with a command index
                      of three (command[3]).

  Note                Use litebarpopup() when you want a one-shot menu,
                      and the litebar...() functions when you plan on
                      keeping the menu on the screen for multiple choices
                      (perhaps when overlaying submenus).

  See also            menuhk.h
                      changelitebar(), isHiliteable(), litebar_alloc(),
                      litebar_free(), litebar_get(), litehilite(),
                      litemessage(), liteunlite()
                      litebarerrno

  Example             see demolite.c


See Also: litebar_alloc() litebar_get() litebar_free()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson